package com.ruoyi.offer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.offer.mapper.HrOfferIssueMapper;
import com.ruoyi.offer.domain.HrOfferIssue;
import com.ruoyi.offer.service.IHrOfferIssueService;

/**
 * offer发放Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrOfferIssueServiceImpl implements IHrOfferIssueService 
{
    @Autowired
    private HrOfferIssueMapper hrOfferIssueMapper;

    /**
     * 查询offer发放
     * 
     * @param id offer发放主键
     * @return offer发放
     */
    @Override
    public HrOfferIssue selectHrOfferIssueById(Long id)
    {
        return hrOfferIssueMapper.selectHrOfferIssueById(id);
    }

    /**
     * 查询offer发放列表
     * 
     * @param hrOfferIssue offer发放
     * @return offer发放
     */
    @Override
    public List<HrOfferIssue> selectHrOfferIssueList(HrOfferIssue hrOfferIssue)
    {
        return hrOfferIssueMapper.selectHrOfferIssueList(hrOfferIssue);
    }

    /**
     * 新增offer发放
     * 
     * @param hrOfferIssue offer发放
     * @return 结果
     */
    @Override
    public int insertHrOfferIssue(HrOfferIssue hrOfferIssue)
    {
        return hrOfferIssueMapper.insertHrOfferIssue(hrOfferIssue);
    }

    /**
     * 修改offer发放
     * 
     * @param hrOfferIssue offer发放
     * @return 结果
     */
    @Override
    public int updateHrOfferIssue(HrOfferIssue hrOfferIssue)
    {
        return hrOfferIssueMapper.updateHrOfferIssue(hrOfferIssue);
    }

    /**
     * 批量删除offer发放
     * 
     * @param ids 需要删除的offer发放主键
     * @return 结果
     */
    @Override
    public int deleteHrOfferIssueByIds(Long[] ids)
    {
        return hrOfferIssueMapper.deleteHrOfferIssueByIds(ids);
    }

    /**
     * 删除offer发放信息
     * 
     * @param id offer发放主键
     * @return 结果
     */
    @Override
    public int deleteHrOfferIssueById(Long id)
    {
        return hrOfferIssueMapper.deleteHrOfferIssueById(id);
    }
}
